//: Playground - noun: a place where people can play

import UIKit

var str = "Hello, playground"


let a = 5
let b = 2
var c = 0

if c == a {
    
}

//a/c
//a%c

let d = 5.2 , e = 1.7
d/e
d%e


Int.max
Int.min

c++
++c

//
//let statusBarHeight = 20
//let basicViewHeight = 548
//
//var isFullScreenMode = true
//
//var viewHeight = basicViewHeight + (isFullScreenMode ? statusBarHeight : 0)

//var score = 58

//var rate = ((score >=60) ? "fuck you" : "fuck me")


 /// 聚合运算符

var userNikName : String? = "wingsmm"

if userNikName != nil
{
    print("hello \(userNikName)")
}
else
{
    print("fuck you")
}


var outuputName = userNikName ?? "guest"

var arr1 = [1,2,3,4]

for index in 1..<10
{
        index
}


var arr2 = ["a","b","c"]

for i in 0..<arr2.count
{
    arr2[i]
}


